package dto

type LoginDto struct {
	CaptchaId string `json:"captchaId" binding:"required"`
	Captcha   string `from:"captcha" json:"captcha" binding:"required"`
	Username  string `from:"username" json:"username" binding:"required"`
	Password  string `from:"password" json:"password" binding:"required"`
}

type ModifyUserinfoDto struct {
	ID       uint   `form:"id" json:"id" binding:"required"`
	Username string `form:"username" json:"username"`
	RealName string `form:"realName" json:"realName"`
	Dept     string `form:"dept" json:"dept"`
	Position string `form:"position" json:"position"`
	Tel      string `form:"tel" json:"tel"`
	Role     string `form:"role" json:"role"`
	Password string `form:"password" json:"password"`
}

type ModifyPasswordDto struct {
	ID              uint   `form:"id" json:"id" binding:"required"`
	OldPassword     string `form:"oldPassword" json:"oldPassword" binding:"required"`
	Password        string `form:"password" json:"password" binding:"required"`
	ConfirmPassword string `form:"confirmPassword" json:"confirmPassword" binding:"required"`
}
